<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - AI故事生成器</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <link rel="stylesheet" href='/static/css/login.css'>
</head>
<body>

<main class="container">
    <div class="auth-form">
        <h1>创建账号</h1>

        <form method="post" action="{% url 'store_system:register' %}">
            {% csrf_token %}
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>

            <div class="form-group">
                <label for="email">邮箱</label>
                <input type="email" id="email" name="email" required>
            </div>

            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>

            <div class="form-group">
                <label for="confirm-password">确认密码</label>
                <input type="password" id="confirm-password" name="confirm_password" required>
            </div>
             
            <div class="form-group">
                <label for="confirm-password">选择身份</label>
                <select id="basic" class="basic-select" name="gategory">
                    <option value="普通用户">普通用户</option>
                    <option value="作者">作者</option>
                </select>
            </div>
                
            <div class="form-options">
                <label>
                    <input type="checkbox" required>
                    我已阅读并同意 <a href="#">服务条款</a> 和 <a href="#">隐私政策</a>
                </label>
            </div>

            <button type="submit" class="btn btn-primary">注册</button>
        </form>

        <p class="auth-switch">
            已有账号? <a href="{% url 'store_system:login' %}">立即登录</a>
        </p>
    </div>
</main>

</body>
</html>